// ========================================================
// Des：
// Autor：Mr.H 
// CreateTime：2024/04/12 16:37:27
// 版 本：v 1.0
// ========================================================
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class LosePanel : BasePanel<LosePanel>
{
    public CustomGUIButton btnQuit;
    public CustomGUIButton btnGoOn;
    public LosePanel()
    {
    }

    // Start is called before the first frame update
    void Start()
    {
        btnQuit.clickEvent += () =>
        {
            Time.timeScale = 1.0f;
            //切场景
            SceneManager.LoadSceneAsync("BeginScene");
        };
        btnGoOn.clickEvent += () =>
        {
            Time.timeScale = 1.0f;
            //切场景  再次切换到游戏场景  达到所有内容更新 重头开始
            SceneManager.LoadSceneAsync("GameScene");
        };

        HideMe();
    }

   
}
